<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <meta name="viewport" content="initial-scale=1.0, user-scalable=no"/>
    <title>轨迹查看</title>
    <meta charset="utf-8">
<meta name="renderer" content="webkit">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="Author" content="larry" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="format-detection" content="telephone=no">
<link rel="stylesheet" href="../../statics/common/cascader/cascader/cascader.css" media="all">
<link rel="stylesheet" type="text/css" href="../../statics/common/layui/css/layui.css" media="all">
<link rel="stylesheet" type="text/css" href="../../statics/common/layui/css/autocomplete.css">
<link rel="stylesheet" type="text/css" href="../../statics/common/layui/css/soulTable.css">
<link rel="stylesheet" type="text/css" href="../../statics/plugins/ztree/css/metroStyle/metroStyle.css">
<link rel="stylesheet" type="text/css" href="../../statics/css/common.css">
<link rel="stylesheet" type="text/css" href="../../statics/css/font-awesome-4.7.0/css/font-awesome.min.css">
<link rel="stylesheet" type="text/css" href="../../statics/css/list-search-table.css">
<!--<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/layui-soul-table/docs/soulTable.css" media="all"/>-->
<script type="text/javascript" src="../../statics/plugins/jquery.min.js"></script>
<script type="text/javascript" src="../../statics/common/lib/vue.min.js"></script>
<script type="text/javascript" src="../../statics/plugins/ztree/jquery.ztree.all.min.js"></script>
<script type="text/javascript" src="../../statics/common/layui/layui.all.js"></script>
<script type="text/javascript" src="../../statics/common/js/axios.min.js"></script>
<script type="text/javascript" src="../../statics/common/js/xm-select.js"></script>
<script type="text/javascript" src="../../statics/js/common.js"></script>
<script type="text/javascript" src="../../statics/js/upload.js"></script>
<script type="text/javascript" src="../../statics/common/step/steps.js"></script>
<link rel="stylesheet" href="../../statics/css/jxcPublicAll.css"  media="all">
<link href="../../statics/common/photoviewer/dist/photoviewer.css" rel="stylesheet">
<link rel="stylesheet" href="../../statics/common/step/steps.css">
<!--<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/cropperjs/1.5.7/cropper.css" media="all">-->
<link rel="stylesheet" href="../../statics/js/modules/cropper/cropper.css" media="all">
<link rel="stylesheet" type="text/css" href="../../statics/css/viewer.min.css">
<!--<script src="https://cdnjs.cloudflare.com/ajax/libs/cropperjs/1.5.7/cropper.min.js"></script>-->
<script src="../../statics/js/modules/cropper/cropper.min.js"></script>
<script src="../../statics/common/photoviewer/dist/photoviewer.js"></script>
<script src="../../statics/common/layui/autocomplete.js"></script>
<script  src="../../statics/js/modules/viewer/viewer.min.js"></script>
<script src="../../statics/common/print-js/print.min.js"></script>
<link rel="stylesheet" type="text/css" href="../../statics/common/print-js/print.min.css">
<script type="text/javascript" src="../../statics/common/xmselect/xm-select.js"></script>
<script type="text/javascript" src="../../statics/js/searchview.js"></script>
<script type="text/javascript" src="../../statics/js/tableedit.js"></script>

<!--<script type="text/javascript" src="http://api.map.baidu.com/api?v=1.0&type=webgl&ak=eo4XeZhRKHsQ0NOe6u6NkKscmRsk416B"></script>-->

<!-- 引入组件库 -->
<link rel="stylesheet" type="text/css" href="../../statics/css/index.css">







    <script src="//api.map.baidu.com/api?v=2.0&ak=lOg1cACjgBWi6hmjj9L3KR4sATnuzfk3"></script>
    <!--  <script src="../../statics/common/LuShu/lushu.js"></script>-->
    <script type="text/javascript" src="//api.map.baidu.com/library/LuShu/1.2/src/LuShu.js"></script>
    <style type="text/css">
        body, html, #allmap {
            width: 100%;
            height: 90%;
            overflow: hidden;
            margin: 0;
            font-family: "微软雅黑";
        }
    </style>
    <style>
        body, html, #app, #map {
            overflow: hidden;
            width: 100%;
            height: 100%;
            margin: 0;
            font-family: "微软雅黑";
        }

        .info {
            z-index: 999;
            width: auto;
            min-width: 22rem;
            padding: .75rem 1.25rem;
            margin-left: 1.25rem;
            position: fixed;
            top: 1rem;
            background-color: #fff;
            border-radius: .25rem;
            font-size: 14px;
            color: #666;
            box-shadow: 0 2px 6px 0 rgba(27, 142, 236, 0.5);
        }

        #allmap {
            width: 100%;
            height: 100vh;
        }

        .text-center {
            text-align: center;
        }

        /* 轨迹*/
        .map-track {
            position: absolute;
            right: 0;
            top: 40px;
            width: 560px;
            box-sizing: border-box;
            padding: 15px;
            background: rgba(255, 255, 255, 0.80);
            box-shadow: 1px 1px 5px 2px #e4edff;
            /*双击按钮背景变蓝样式禁止*/
            -moz-user-select: none; /*火狐*/
            -webkit-user-select: none; /*webkit浏览器*/
            -ms-user-select: none; /*IE10*/
            -khtml-user-select: none; /*早期浏览器*/
            user-select: none;
        }

        .track-title {
            font-weight: 500;
            font-size: 18px;
            margin-bottom: 12px;
        }

        .track-main {
            border: 1px solid #dbe2ec;
            margin-bottom: 12px;
        }

        .th, .td {
            display: flex;
            justify-content: center;
            align-items: center;
            height: 40px;
            text-align: center;
            font-size: 14px;
        }

        .th {
            background: #f4f7fd;
            border-bottom: 1px solid #dbe2ec;
        }

        .th span, .td span {
            width: 100px;
        }

        .td {
            background: #fff;
        }

        .margin-bottom {
            margin-bottom: 12px;
        }

        .track-step {
            display: flex;
            align-items: center;

        }

        .step-slider {
            flex: 1;
        }

        .step-label {
            /*text-align: center;*/
            width: 70px;
        }

        .track-step .layui-slider {
            height: 8px;
            background: #dbe2ec;
            margin-right: 15px;
        }

        .track-step .layui-slider-wrap {
            top: -14px;
        }

        .track-step .layui-slider-wrap-btn {
            background: #1971FA;
        }

        .timing {
            display: flex;
            /*justify-content: center;*/
        }

        .timing-inner {
            display: flex;
            align-items: center;
        }

        .timing-input {
            height: 30px;
            line-height: 1.3;
            line-height: 30px \9;
            border-width: 1px;
            border-style: solid;
            background-color: #fff;
            border-radius: 2px;
            border-color: #e6e6e6;
            box-sizing: border-box;
            padding: 0 5px;
            margin: 0 10px;
        }

        .stretch {
            box-sizing: border-box;
            position: absolute;
            top: 0;
            right: 0;
            z-index: 10;
        }

        .stretch-img {
            display: inline-block;
            width: 18px;
            height: 18px;
            cursor: pointer;
        }

        .fade-enter-active, .fade-leave-active {
            transition: all .5s;
        }

        .fade-enter, .fade-leave-to {
            opacity: 0;
            transform: translateX(560px);
        }

        /*    轨迹信息 2.0 */
        .cartrack-container {
            position: absolute;
            left: 0;
            top: 0;
            height: 100vh;
            width: 250px;
            box-sizing: border-box;
            padding: 0 10px;
        }

        .white {
            box-shadow: 1px 1px 5px 2px #e4edff;
            background: white;
        }

        .cartrack-label {
            font-size: 12px;
        }

        .cartrack-timing .timing-input {
            height: 30px;
            line-height: 1.3;
            line-height: 30px \9;
            border-width: 1px;
            border-style: solid;
            background-color: #fff;
            border-radius: 2px;
            border-color: #e6e6e6;
            box-sizing: border-box;
            padding: 0 5px;
            margin: 5px 0;
            font-size: 13px;
        }

        .track-screen {
            display: flex;
        }

        .track-mileage {
            margin: 20px -10px;
            text-align: center;
            height: 40px;
            line-height: 40px;
        }

        .margin-bottom-20 {
            margin-bottom: 20px !important;
        }

        .vehicle-table {
            position: absolute;
            bottom: -10px;
            right: 0;
            width: calc(100vw - 250px);
        }

        .date-container {
            text-align: right;
            margin: 10px 0
        }

        .date1 {
            margin: 0 5px;
            cursor: pointer;
        }
        .el-slider__bar {
            height: 8px;
            background-color: #1971fa;
        }
        .el-slider__button {
            border: 2px solid #1971fa;
            background-color: #1971fa;
        }
    </style>
</head>
<body>

<div id="app">
    <div class="map-container">
        <!--<v-map ref="map" :map-track="1" :config="config" @send="run"></v-map>-->
        <div id="allmap"></div>

        <div class="cartrack-container white">
            <div class="date-container">
                <span class="date1" @click="onDate(-2)">前天</span>
                <span class="date1" @click="onDate(-1)">昨日</span>
                <span class="date1" @click="onDate(0)">今日</span>
            </div>
            <div class="cartrack-timing margin-bottom-20">
                <p class="timing-inner">
                    <span class="cartrack-label">开始时间：</span>
                    <input type="text" class="timing-input" v-model="q.trackStartTime" id="trackStartTime"
                           placeholder="请选择开始时间" readonly>
                </p>
                <p class="timing-inner">
                    <span class="cartrack-label">结束时间：</span>
                    <input type="text" class="timing-input" v-model="q.trackEndTime" id="trackEndTime"
                           placeholder="请选择结束时间" readonly>
                </p>
            </div>
            <div style="display: none" class="track-screen margin-bottom-20">
                <span class="cartrack-label">筛选条件：</span>
                <div>
                    <p class="margin-bottom">
                        <label for="history">
                            <input id="history" type="checkbox" name="like1" value="轨迹明细" title="写作" checked="false">
                            轨迹明细
                        </label>
                    </p>
                    <p>
                        <label for="detail">
                            <input id="detail" type="checkbox" name="like1" value="显示历史行程" title="写作" checked="false">
                            显示历史行程
                        </label>
                    </p>
                </div>
            </div>
            <div class="track-step margin-bottom-20">
                <span class="step-label cartrack-label">回放速度</span>
                <div class="step-slider" id="slideTest1"></div>
                <!-- <span class="step-label">3600km/h</span>-->
            </div>
            <!--            <el-slider v-model="speed" @change="changeSpeed" :min="10" :max='1000'></el-slider>-->
            <div class="text-center margin-bottom-20">
                <template>
                    <button class="layui-btn search-btn layui-btn-fluid" v-if="repeatState" @click="onPalay">播放</button>
                    <button class="layui-btn search-btn layui-btn-fluid" v-if="isPlay" @click="play">播放</button>
                    <button class="layui-btn search-btn" v-if="suspend" @click="onPause">暂停</button>
                    <button class="layui-btn layui-btn-danger" v-if="stopState" @click="clearAll">停止</button>
                </template>
            </div>
            <div class="track-mileage layui-card layui-bg-gray" v-if="trackDetails && trackDetails.totalMileage">
                总里程：{{trackDetails.totalMileage}} km
            </div>
        </div>

        <table style="display: none" class="layui-table vehicle-table">
            <colgroup>
                <col width="150">
                <col width="150">
                <col width="200">
                <col>
            </colgroup>
            <thead>
            <tr>
                <th>车牌</th>
                <th>速度（km/h)</th>
                <th>状态</th>
                <th>报警</th>
                <th>状态信息</th>
                <th>GPS（时间）</th>
                <th>接收时间</th>
                <th>默认显示地址</th>
                <th>操作</th>
            </tr>
            </thead>
            <tbody>
            <tr>
                <td>贤心</td>
                <td>汉族</td>
                <td>1989-10-14</td>
                <td>人生似修行</td>
                <td>人生似修行</td>
                <td>人生似修行</td>
                <td>人生似修行</td>
                <td>人生似修行</td>
                <td>人生似修行</td>
            </tr>
            </tbody>
        </table>

        <!--  轨迹-->
        <div style="display:none">
            <div class="stretch" @click="isStretch =!isStretch">
                <img class="stretch-img" src="../../statics/images/map/stretch.png" alt="">
            </div>
            <transition name="fade">
                <div class="map-track" v-show="isStretch">
                    <p class="track-title">轨迹详情</p>
                    <div>
                        <ul class="track-main">
                            <li class="th">
                                <span>司机姓名</span>
                                <span>车牌号码</span>
                                <span>最大时速</span>
                                <span>平均时速</span>
                                <!-- <span>行驶里程</span>-->
                                <span>总里程</span>
                                <span>行驶耗时</span>
                            </li>
                            <li class="td">
                                <span>{{trackDetails.customerName | valueData}}</span>
                                <span>{{trackDetails.carNo | valueData}}</span>
                                <span>{{trackDetails.maximumSpeed | maximumSpeed}}</span>
                                <span>{{trackDetails.averageSpeed | averageSpeed }}</span>
                                <span>{{trackDetails.totalMileage | totalMileage}}</span>
                                <span>{{trackDetails.travelTime | travelTime}}</span>
                            </li>
                        </ul>
                        <div class="track-step margin-bottom">
                            <span class="step-label">回放速度</span>
                            <!--                        <div class="step-slider" id="slideTest1"></div>-->
                            <!-- <span class="step-label">3600km/h</span>-->
                        </div>
                        <div class="timing margin-bottom">
                            <p class="timing-inner">
                                <span>开始时间:</span>
                                <input type="text" class="timing-input" v-model="q.trackStartTime" id="trackStartTime"
                                       placeholder="请选择开始时间" readonly>
                            </p>
                            <p class="timing-inner">
                                <span>结束时间:</span>
                                <input type="text" class="timing-input" v-model="q.trackEndTime" id="trackEndTime"
                                       placeholder="请选择结束时间" readonly>
                            </p>
                        </div>
                        <div>
                            <button class="layui-btn layui-btn-primary" @click="onDate(-2)">前天</button>
                            <button class="layui-btn layui-btn-primary" @click="onDate(-1)">昨日</button>
                            <button class="layui-btn layui-btn-primary" @click="onDate(0)">今日</button>
                        </div>
                        <div class="text-center margin-bottom">
                            <template>
                                <button class="layui-btn layui-btn-primary" v-if="repeatState" @click="onPalay">播放
                                </button>
                                <button class="layui-btn layui-btn-primary" v-if="isPlay" @click="play">播放</button>
                                <button class="layui-btn layui-btn-primary" v-if="suspend" @click="onPause">暂停</button>
                                <button class="layui-btn layui-btn-primary" v-if="stopState" @click="clearAll">停止
                                </button>
                            </template>
                        </div>
                    </div>
                </div>
            </transition>
        </div>
    </div>
</div>
</body>

<script src="../../statics/js/modules/car/cartrack.js"></script>

</html>



